package com.ruoyi.service.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.service.project.entity.ProjectExtEntity;
import com.ruoyi.service.project.mapper.ProjectExtMapper;
import com.ruoyi.service.project.service.ProjectExtService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 项目信息扩展表 服务实现类
 * </p>
 *
 * @author Zane
 * @since 2025-10-11
 */
@Service
public class ProjectExtServiceImpl extends ServiceImpl<ProjectExtMapper, ProjectExtEntity>
    implements ProjectExtService {

  @Override
  public ProjectExtEntity selectByProjectId(String id) {
    return this.getOne(effectQuery().eq(ProjectExtEntity::getProjectId, id));
  }

  private LambdaQueryWrapper<ProjectExtEntity> effectQuery() {
    return new LambdaQueryWrapper<>();
  }
}
